<?php
namespace Admin\Controller;
use Think\Controller;
class ContactController extends AdminController {
	//联系我们地址
    public function index(){
    	$this->c=M('contact')->find();
    	$this->display();
    }
    //修改地址
    public function save_contact(){
    	if(M('contact')->where("id=1")->save(array('content'=>I('content')))){
    		$this->ajaxReturn(V(1,'添加成功'));
    	}else{
    		$this->ajaxReturn(V(2,'添加失败'));
    	}
    }
}